package com.varian.system.service;

import com.varian.mybatis.base.IBaseService;
import com.varian.system.dto.SysMenuDTO;
import com.varian.system.dto.SysMenuListDTO;
import com.varian.system.dto.SysMenuTreeDTO;
import com.varian.system.dto.SysMenuWeightsDTO;
import com.varian.system.entity.SysMenu;
import com.varian.system.vo.SysMenuVO;

import java.util.List;

/**
 * @author ben
 * @since 2024/7/2
 */
public interface ISysMenuService extends IBaseService<SysMenu> {

    boolean add(SysMenuDTO dto);

    boolean modify(Long id, SysMenuDTO dto);

    SysMenuVO detail(Long id);

    List<SysMenuVO> tree(SysMenuTreeDTO dto);

    boolean delete(Long id);

    List<SysMenuVO> treeByUser();

    List<SysMenuVO> list(SysMenuListDTO dto);

    boolean weights(Long parentId, List<SysMenuWeightsDTO> list);
}
